package br.com.usp.shared;

 
import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

public class BusinessRule extends BMMRepresentation implements IsSerializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ArrayList<Tactic> listaTactic;
	private AbstractBMM aB;
	
	public BusinessRule()
	{
		listaTactic = new ArrayList<Tactic>();
		
	}
	public BusinessRule(BMMDTO bmm)
    {
		    this();
	    	setId(bmm.getId());
	    	setDescricao(bmm.getDescricao());
	    	setRepresentacao(bmm.getRepresentacao());
	    	setLeft(bmm.getLeft());
	    	setTop(bmm.getTop());
	    	setTipo(bmm.getTipo());
	}
	
	public String getTipo() {
		return "Business Rule";
	}
	
	public String getRepresentacao() {
		return "btnBusinessRule";
	}


	public ArrayList<Tactic> getListaTactic() {
		return listaTactic;
	}


	public void setListaTactic(ArrayList<Tactic> listaTactic) {
		this.listaTactic = listaTactic;
	}


	public AbstractBMM getaB() {
		return aB;
	}


	public void setaB(AbstractBMM aB) {
		this.aB = aB;
	}
	

	
}
